<?php
include '../functions.php';
include './Db.class.php';


// $data = Db::query("select * from stu");

// $data = Db::query("select * from stu");

// $data = Db::exec("update stu set age=age+10 where cid=10");

// 查询
// $data = Db::table('stu')->where("sex='男'")->find();

// $data = Db::table('stu')->findAll();
// $data = Db::table('stu')->delete(10);

// $data = Db::table('stu')->where("name='苍老师'")->delete();

// $data =['name'=>'小明xxx','age'=>18,'sex'=>'女'];

// $data = Db::table('stu')->where("sid=7")->update($data);

// $data = Db::table('stu')->insert($data);



// var_dump($data);

// var_dump(Db::getError());

// var_dump(Db::getLastsql());
